import request from '@/utils/request';

export interface ChargingType {
  id: number;
  name: string;
  chargingType: number;
}

export interface Result<T> {
  code: number;
  message: string;
  data: T;
}

export function getChargingTypeList(): Promise<Result<ChargingType[]>> {
  return request.get('/api/charging/pile/chargingType/list');
}
